//
//  ZWThemeManager.h
//  aixianfeng
//
//  Created by zhaowei on 17/4/26.
//  Copyright © 2017年 zhaowei. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ZWSingleton.h"
#import <UIKit/UIKit.h>

#pragma mark -定义快捷宏

//单例快捷访问宏
#define _ThemeManager       ([ZWThemeManager sharedInstance])

//图片快捷访问宏
#define _I(__NAME__)        ([_ThemeManager imageNamed:__NAME__])

//本地化字符串快捷访问宏
#define _S(__KEY__)         ([_ThemeManager localizedStringWithKey:__KEY__])

@interface ZWThemeManager : NSObject
INTERFACE_SINGLETON(ZWThemeManager)


#pragma mark - 资源获取 -

/**
 获取图片资源

 @param name 图片名称
 @return 返回图片对象
 */
- (UIImage *)imageNamed:(NSString *)name;


/**
 获取本地化字符串

 @param key 字符串名称
 @return 返回本地化字符串
 */
- (NSString *)localizedStringWithKey:(NSString *)key;

@end
